<%--
  Created by IntelliJ IDEA.
  User: xdd
  Date: 2022/7/19
  Time: 22:06
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%

  String app = "application";
  String ses = "session";
  session.setAttribute("sessionName",ses);
  application.setAttribute("appName",app);
 // response.sendRedirect("testTwo1.jsp");  //第二个页面没有参数
%>
<strong>
  session:<%=session.getAttribute("sessionName") %><br/>
  application:<%=application.getAttribute("appName") %>
</strong>
</body>

</html>
